package edu.ensabap.matricula.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.ensabap.matricula.bean.AntonioDTO;
import edu.ensabap.matricula.dao.AntonioDAO;

@Service
public class AntonioService {

	@Autowired
	private AntonioDAO antonioDAO; 
	
	//puente listar Antonio
	public List<AntonioDTO> listarAntonio(AntonioDTO antonioDTO){
		return antonioDAO.listar(antonioDTO);
		
	}
	
	
	//puente insertar Antonio
	public int insertarAntonio(AntonioDTO antonioDTO){
		return antonioDAO.insertar(antonioDTO);
	}
	
	public int eliminarAntonio(AntonioDTO antonioDTO){
		return antonioDAO.eliminar(antonioDTO);
	}
	
	
	
	
}
